; Music of Hard Drivin' (1989) (Domark) (Ben Daglish)
; Ripped by Megachur the 09/02/2007

	write "HARDDRIV.BIN"

music_date_rip	equ &0927
music_adr	equ &b000
first_theme	equ 0
last_theme	equ 11

	read "music_header_v1_0.asm"

;#b000
.lb000
.music_end
	db #00
;
.stop_music
;
	xor a
	ld (lb000),a
	jp lb3e2
;
; init sound effects
;
	ld l,a
	ld e,a
	ld h,#00
	ld d,h
	add hl,hl
	add hl,de
	add hl,hl
	add hl,hl
	add hl,de
	ld iy,lbd1b
	ex de,hl
	add iy,de
	ld l,(iy+#0a)
	ld h,(iy+#0b)
	ld c,(iy+#0c)
	ld ix,lb328
	call lb35e
	set 7,(ix+#11)
	ret
.lb02e
	nop
.lb02f
	call #0000
.lb035 equ $ + 3
	set 7,(ix+#00)
	ret
.lb03d equ $ + 6
.lb03b equ $ + 4
.lb03a equ $ + 3
.lb039 equ $ + 2
.lb038 equ $ + 1
.lb037
	db #00,#00,#00,#00,#00,#00,#00,#00
.lb044 equ $ + 5
.lb043 equ $ + 4
	db #00,#00,#00,#00,#08,#00,#00,#00
.lb04e equ $ + 7
.lb04d equ $ + 6
.lb04c equ $ + 5
.lb04a equ $ + 3
	db #00,#00,#00,#00,#00,#08,#00,#00
.lb052 equ $ + 3
.lb050 equ $ + 1
.lb04f
	db #00,#00,#00,#00,#00,#00,#00,#00
.lb059 equ $ + 2
.lb058 equ $ + 1
	db #00,#10,#00,#00,#00,#00,#00,#00
.lb065 equ $ + 6
.lb064 equ $ + 5
.lb063 equ $ + 4
.lb062 equ $ + 3
.lb061 equ $ + 2
.lb05f
	db #00,#00,#10,#00,#00,#00,#00,#00
.lb06d equ $ + 6
.lb067
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00
;
.init_music
;
	push af
	call lb3e2
	pop af
	ld l,a
	add a
	add l
	add a
	ld hl,lbb37
	add l
	ld l,a
	jr nc,lb096
	inc h
.lb096
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	ld (lb02f),de
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	ld (lb044),de
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	ld (lb059),de
	xor a
	ld (lb038),a
	ld (lb04d),a
	ld (lb062),a
	ld (lb03d),a
	ld (lb052),a
	ld (lb067),a
	cpl
	ld (lb039),a
	ld (lb04e),a
	ld (lb063),a
	ld a,#01
	ld (lb037),a
	ld (lb04c),a
	ld (lb061),a
	ld (lb03a),a
	ld (lb04f),a
	ld (lb064),a
	ld hl,lb06d
	ld bc,#030a
.lb0e5
	xor a
.lb0e6
	ld (hl),a
	inc hl
	add c
	ld (hl),a
	inc hl
	add c
	cp #50
	jr nz,lb0e6
	djnz lb0e5
	ld hl,lbc1d
	ld (lb035),hl
	ld (lb04a),hl
	ld (lb05f),hl
	ld a,#ff
	ld (lb03b),a
	ld (lb050),a
	ld (lb065),a
	ld (lb000),a
	ret
;
.play_music
;
	call lb41a
	ld a,(lb000)
	and a
	ret z
	ld a,(lb03b)
	or a
	jr nz,lb125
	ld a,(lb050)
	or a
	jr nz,lb125
	ld a,(lb065)
	or a
.lb125
	ld (lb000),a
	jr nz,lb138
	ld a,(lb327)
	and #3f
	cp #3f
	ret z
	ld a,#01
	ld (lb000),a
	ret
.lb138
	ld iy,lb02e
	ld ix,lb328
	call lb156
	ld iy,lb043
	ld ix,lb33a
	call lb156
	ld iy,lb058
	ld ix,lb34c
.lb156
	call lb297
	ld a,(iy+#0b)
	and a
	jr z,lb1db
.lb15f
	dec (iy+#09)
	jr z,lb176
	ld a,(iy+#03)
	ld (iy+#05),a
	ld a,(iy+#04)
	ld (iy+#06),a
	ld (iy+#0b),#00
	jr lb1db
.lb176
	ld (iy+#09),#01
	ld l,(iy+#01)
	ld h,(iy+#02)
.lb180
	ld a,(hl)
	cp #80
	jr c,lb1bb
	cp #fe
	jr nz,lb192
	inc hl
	ld a,(hl)
	ld (iy+#0a),a
	inc hl
	jp lb180
.lb192
	cp #ff
	jr nz,lb19b
	xor a
	ld (iy+#0d),a
	ret
.lb19b
	cp #c0
	jr nc,lb1a8
	and #1f
	ld (iy+#09),a
	inc hl
	jp lb180
.lb1a8
	and #07
	add (iy+#00)
	ld de,lb06d
	add e
	ld e,a
	jr nc,lb1b5
	inc d
.lb1b5
	inc hl
	ldi
	jp lb180
.lb1bb
	ld (iy+#0b),#00
	inc hl
	ld (iy+#01),l
	ld (iy+#02),h
	ld c,a
	ld b,#00
	ld hl,lbaf1
	add hl,bc
	ld e,(hl)
	ld hl,lbb14
	add hl,bc
	ld d,(hl)
	ld (iy+#03),e
	ld (iy+#04),d
	jr lb1e1
.lb1db
	ld e,(iy+#05)
	ld d,(iy+#06)
.lb1e1
	dec (iy+#0c)
	jr z,lb1f3
	ld a,(de)
	cp #80
	call nc,lb25d
	ld (iy+#05),e
	ld (iy+#06),d
	ret
.lb1f3
	ld a,(de)
	cp #80
	jr c,lb204
	call lb25d
	ld a,(iy+#0b)
	and a
	jr z,lb1f3
	jp lb15f
.lb204
	cp #7f
	jr z,lb250
	cp #7e
	jr nz,lb215
	inc de
	ld a,(de)
	ld l,a
	inc de
	ld a,(de)
	ld h,a
	jp lb229
.lb215
	add (iy+#0a)
	add #0c
	ld (iy+#0e),a
	ld hl,lbd4f
	add a
	ld c,a
	ld b,#00
	add hl,bc
	ld a,(hl)
	inc hl
	ld h,(hl)
	ld l,a
.lb229
	ld a,(iy+#0f)
	or #c0
	ld (iy+#14),a
	inc de
	ld a,(de)
	inc de
	ld (iy+#0c),a
	ld c,a
	ld (iy+#05),e
	ld (iy+#06),d
	ld e,(iy+#07)
	ld a,(iy+#08)
	ld hy,a
	ld ly,e
	bit 7,(ix+#11)
	ret nz
	jp lb35e
.lb250
	inc de
	ld a,(de)
	inc de
	ld (iy+#0c),a
	ld (iy+#05),e
	ld (iy+#06),d
	ret
.lb25d
	ld a,(de)
	cp #88
	jr nc,lb27b
	and #07
	add (iy+#00)
	ld c,a
	ld b,#00
	ld hl,lb06d
	add hl,bc
	ld c,(hl)
	ld hl,lbc1d
	add hl,bc
	ld (iy+#07),l
	ld (iy+#08),h
	inc de
	ret
.lb27b
	cp #ff
	jr nz,lb284
	ld (iy+#0b),#ff
	ret
.lb284
	cp #c0
	jr nc,lb28f
	and #0f
	ld (iy+#0f),a
	inc de
	ret
.lb28f
	inc de
	cp #c2
	ret z
	inc de
	inc de
	inc de
	ret
.lb297
	bit 7,(ix+#11)
	ret nz
	ld a,(iy+#14)
	bit 7,a
	ret z
	and #3f
	jr nz,lb2ab
	res 7,(iy+#14)
	ret
.lb2ab
	ld d,#07
	bit 6,(iy+#14)
	jr nz,lb2df
	dec (iy+#12)
	ret nz
	dec (iy+#13)
	jp z,lb2df
	ld l,(iy+#10)
	ld h,(iy+#11)
	inc l
	ld (iy+#10),l
	jp nz,lb2ce
	inc h
	ld (iy+#11),h
.lb2ce
	ld a,(hl)
	and d
	ld (iy+#12),a
	ld a,(hl)
	rrca
	rrca
	rrca
	and #1f
	add (iy+#0e)
	jp lb314
.lb2df
	ld hl,lb5d3
	ld a,(iy+#14)
	add a
	add a
	add a
	ld e,a
	add hl,de
	bit 7,(hl)
	jr nz,lb2f9
	bit 6,(iy+#14)
	jr nz,lb2f9
	ld (iy+#13),#01
	ret
.lb2f9
	res 6,(iy+#14)
	ld a,(hl)
	rrca
	rrca
	rrca
	and d
	ld (iy+#12),a
	ld a,(hl)
	and d
	inc a
	ld (iy+#13),a
	ld (iy+#10),l
	ld (iy+#11),h
	ld a,(iy+#0e)
.lb314
	add a
	ld hl,lbd4f
	add l
	ld l,a
	jr nc,lb31d
	inc h
.lb31d
	ld a,(hl)
	ld (ix+#03),a
	inc hl
	ld a,(hl)
	ld (ix+#04),a
	ret
.lb327
	cp a
.lb328
	cp #f7
	add hl,bc
.lb32b
	ld a,(hl)
.lb32d equ $ + 1
.lb32c
	ld (ix+#00),a
	ret
	db #bf,#fe,#f7,#09,#00,#00,#00,#00
.lb33f equ $ + 7
.lb33e equ $ + 6
.lb33d equ $ + 5
.lb33a equ $ + 2
.lb339 equ $ + 1
	db #00,#00,#fd,#ef,#12,#00,#00,#00
	db #00,#00,#00,#fd,#ef,#12,#00,#00
.lb34f equ $ + 7
.lb34c equ $ + 4
.lb34b equ $ + 3
	db #00,#00,#00,#00,#fb,#df,#24,#00
.lb351 equ $ + 1
.lb350
	db #00,#00,#00,#00,#00,#fb,#df,#24
.lb35d equ $ + 5
	db #00,#00,#00,#00,#00,#00
.lb35e
	ld a,ly
	ld (ix+#0f),a
	ld a,hy
	ld (ix+#10),a
	ld (ix+#03),l
	ld (ix+#04),h
	ld (ix+#06),c
	ld a,(iy+#05)
	ld (ix+#07),a
	ld a,(iy+#06)
	and #7f
	srl a
	jr nz,lb382
	ld a,#01
.lb382
	ld (ix+#08),a
	ld a,(iy+#07)
	ld (ix+#0b),a
	ld a,(iy+#08)
	ld (ix+#0c),a
	xor a
	ld (ix+#09),a
	ld (ix+#0a),a
	ld a,(lb327)
	or (ix+#02)
	ld c,(iy+#09)
	ld (ix+#11),c
	bit 0,c
	jr z,lb3ab
	and (ix+#00)
.lb3ab
	bit 1,c
	jr z,lb3b2
	and (ix+#01)
.lb3b2
	ld (lb327),a
	bit 2,c
	jr nz,lb3c3
	ld hl,lb50e
	ld (ix+#0d),l
	ld (ix+#0e),h
	ret
.lb3c3
	ld hl,#ffbf
	ld c,#fd
	ld a,(iy+#00)
	ld e,#0d
	call lb5c6
	ld a,(iy+#04)
	ld e,#0b
	call lb5c6
	inc e
	xor a
	call lb5c6
	ld (ix+#05),#ff
	ret
.lb3e2
	ld c,#fd
	ld hl,#ffbf
	ld e,#07
	ld a,(lb327)
	or #3f
	ld (lb327),a
	call lb5c6
	xor a
	inc e
	call lb5c6
	inc e
	call lb5c6
	inc e
	call lb5c6
	ld a,#01
	inc e
	call lb5c6
	inc e
	xor a
	call lb5c6
	inc e
	call lb5c6
	ld (lb339),a
	ld (lb34b),a
	ld (lb35d),a
	ret
.lb41a
	ld a,(lb327)
	and #3f
	cp #3f
	ret z
	ld ix,lb328
	call lb4dc
	ld ix,lb33a
	call lb4dc
	ld ix,lb34c
	call lb4dc
	ld ix,lb328
	ld hl,#ffbf
	ld c,#fd
	ld e,#07
	ld a,(lb327)
	call lb5c6
	ld e,#00
	ld a,(lb32b)
	add (ix+#09)
	bit 1,(ix+#11)
	jp z,lb458
	ld d,a
.lb458
	call lb5c6
	inc e
	ld a,(lb32c)
	adc (ix+#0a)
	call lb5c6
	inc e
	ld a,(lb33d)
	add (ix+#1b)
	bit 1,(ix+#23)
	jp z,lb474
	ld d,a
.lb474
	call lb5c6
	inc e
	ld a,(lb33e)
	adc (ix+#1c)
	call lb5c6
	inc e
	ld a,(lb34f)
	add (ix+#2d)
	bit 1,(ix+#35)
	jp z,lb490
	ld d,a
.lb490
	call lb5c6
	inc e
	ld a,(lb350)
	adc (ix+#2e)
	call lb5c6
	inc e
	ld a,d
	rrca
	rrca
	rrca
	call lb5c6
	ld e,#08
	ld a,#7f
	ld d,a
	ld a,(lb32d)
	cp d
	jr c,lb4b1
	ld a,d
.lb4b1
	srl a
	srl a
	srl a
	call lb5c6
	inc e
	ld a,(lb33f)
	cp d
	jr c,lb4c2
	ld a,d
.lb4c2
	srl a
	srl a
	srl a
	call lb5c6
	inc e
	ld a,(lb351)
	cp d
	jr c,lb4d3
	ld a,d
.lb4d3
	srl a
	srl a
	srl a
	jp lb5c6
.lb4dc
	ld a,(lb327)
	and (ix+#02)
	cp (ix+#02)
	ret z
	ld a,(ix+#0f)
	ld ly,a
	ld a,(ix+#10)
	ld hy,a
	ld a,(ix+#06)
	and a
	jr z,lb4fd
	cp #ff
	jr z,lb4fd
	dec (ix+#06)
.lb4fd
	call lb584
	bit 2,(iy+#09)
	jp nz,lb57d
	ld l,(ix+#0d)
	ld h,(ix+#0e)
	jp (hl)
.lb50e
	ld a,(ix+#05)
	add (iy+#00)
	cp (iy+#04)
	jr nc,lb51d
	ld (ix+#05),a
	ret
.lb51d
	ld a,(iy+#04)
	ld (ix+#05),a
	ld hl,lb52d
	ld (ix+#0d),l
	ld (ix+#0e),h
	ret
.lb52d
	ld a,(ix+#05)
	add (iy+#01)
	jp m,lb53f
	cp (iy+#02)
	jr c,lb53f
	ld (ix+#05),a
	ret
.lb53f
	ld a,(iy+#02)
	ld (ix+#05),a
	ld hl,lb54f
	ld (ix+#0d),l
	ld (ix+#0e),h
	ret
.lb54f
	ld a,(ix+#06)
	and a
	ret nz
	ld hl,lb55e
	ld (ix+#0d),l
	ld (ix+#0e),h
	ret
.lb55e
	ld a,(ix+#05)
	add (iy+#03)
	jp m,lb56b
	ld (ix+#05),a
	ret
.lb56b
	ld (ix+#05),#00
	ld a,(lb327)
	or (ix+#02)
	ld (lb327),a
	res 7,(ix+#11)
	ret
.lb57d
	ld a,(ix+#06)
	and a
	ret nz
	jr lb56b
.lb584
	ld a,(ix+#07)
	and a
	jr z,lb591
	cp #ff
	ret z
	dec (ix+#07)
	ret nz
.lb591
	ld l,(ix+#09)
	ld h,(ix+#0a)
	ld c,(ix+#0b)
	ld b,(ix+#0c)
	add hl,bc
	ld (ix+#09),l
	ld (ix+#0a),h
	dec (ix+#08)
	ret nz
	ld a,(iy+#06)
	and a
	ret z
	jp p,lb5b5
	ld (ix+#07),#ff
	ret
.lb5b5
	ld (ix+#08),a
	ld a,c
	cpl
	ld c,a
	ld a,b
	cpl
	ld b,a
	inc bc
	ld (ix+#0b),c
	ld (ix+#0c),b
	ret
.lb5c6
	push bc
	push de
	push hl
	ld c,e
	ld de,#c000
	ld hl,#f680
	ld b,#f4
.lb5d3 equ $ + 1
	out (c),c
	ld b,h
	out (c),d
	out (c),e
	ld b,#f4
	out (c),a
	ld b,h
	out (c),l
	out (c),e
	pop hl
	pop de
	pop bc
	ret
.s00
	db #85,#1c,#60,#7f,#3c,#21,#0c,#1e
	db #0c,#1a,#0c,#1c,#60,#7f,#60,#ff
.s01
	db #85,#15,#60,#7f,#3c,#26,#0c,#23
	db #0c,#21,#0c,#23,#60,#7f,#60,#ff
.s02
	db #80,#09,#24,#09,#30,#07,#0c,#09
	db #24,#09,#30,#07,#0c,#81,#1c,#24
	db #1c,#30,#1e,#06,#1e,#06,#1c,#24
	db #1c,#18,#1e,#0c,#1e,#06,#1c,#06
	db #1c,#0c,#ff
.s03
	db #85,#15,#0c,#15,#18
	db #15,#24,#24,#18,#15,#0c,#15,#18
	db #15,#24,#1a,#18,#85,#15,#0c,#15
	db #0c,#18,#18,#15,#0c,#15,#0c,#1a
	db #18,#1c,#0c,#1a,#18,#18,#0c,#1a
	db #18,#1c,#18,#ff
.s04
	db #85,#1c,#0c,#1c
	db #18,#1c,#24,#1f,#18,#1c,#0c,#1c
	db #18,#1c,#24,#21,#18,#85,#1c,#0c
	db #1c,#0c,#1f,#18,#1c,#0c,#1c,#0c
	db #21,#18,#23,#0c,#21,#18,#1f,#0c
	db #21,#18,#1f,#18,#ff
.s05
	db #80,#09,#0c
	db #09,#0c,#81,#15,#0c,#80,#09,#0c
	db #84,#15,#0c,#80,#07,#0c,#0c,#0c
	db #81,#15,#0c,#80,#09,#0c,#09,#0c
	db #81,#15,#0c,#80,#09,#0c,#84,#15
	db #0c,#80,#07,#0c,#0e,#0c,#81,#15
	db #0c,#80,#09,#0c,#84,#12,#0c,#80
	db #0c,#0c,#81,#15,#0c,#80,#09,#0c
	db #84,#12,#0c,#80,#0e,#0c,#81,#15
	db #0c,#86,#07,#24,#81,#15,#06,#15
	db #06,#15,#06,#15,#0c,#81,#15,#06
	db #15,#06,#15,#06,#15,#0c,#ff
.s06
	db #85
	db #18,#48,#7f,#18,#15,#06,#18,#06
	db #1a,#06,#1d,#0c,#1a,#06,#1c,#18
	db #1c,#06,#1a,#06,#1c,#18,#85,#1a
	db #0c,#1c,#0c,#1c,#18,#1c,#18,#1f
	db #0c,#1a,#18,#1c,#0c,#1c,#18,#1c
	db #18,#1f,#0c,#1c,#0c,#ff
.s07
	db #85,#1a
	db #06,#1d,#06,#1f,#06,#1d,#06,#21
	db #06,#1f,#06,#1d,#06,#1a,#06,#1f
	db #06,#1d,#06,#1a,#06,#18,#06,#1a
	db #18,#85,#18,#06,#1a,#06,#1d,#06
	db #24,#0c,#21,#06,#23,#18,#23,#06
	db #21,#06,#23,#18,#85,#15,#0c,#17
	db #0c,#17,#18,#17,#18,#1a,#0c,#15
	db #18,#17,#0c,#17,#18,#17,#18,#1a
	db #0c,#17,#0c,#ff
.s08
	db #80,#0e,#18,#0e
	db #0c,#81,#1a,#0c,#80,#0c,#0c,#0c
	db #0c,#0d,#0c,#0e,#0c,#84,#12,#0c
	db #80,#0e,#0c,#81,#1a,#0c,#80,#0e
	db #0c,#0c,#0c,#0c,#0c,#0d,#0c,#84
	db #12,#0c,#84,#2a,#24,#25,#24,#22
	db #18,#81,#25,#0c,#1e,#18,#84,#1e
	db #0c,#19,#0c,#81,#12,#06,#12,#06
	db #0d,#06,#06,#06,#06,#0c,#ff
.s09
	db #85
	db #18,#0c,#1a,#0c,#1a,#18,#1a,#18
	db #1d,#0c,#18,#18,#1a,#0c,#1a,#18
	db #1a,#30,#15,#0c,#17,#0c,#17,#18
	db #85,#17,#18,#1a,#0c,#15,#18,#17
	db #0c,#17,#18,#17,#30,#ff
.s10
	db #85,#13
	db #0c,#15,#0c,#15,#18,#15,#24,#85
	db #15,#06,#18,#06,#1f,#06,#1d,#06
	db #1a,#06,#18,#06,#1d,#06,#1a,#06
	db #18,#06,#15,#06,#1a,#30,#85,#1a
	db #0c,#1c,#0c,#1c,#18,#1c,#18,#1f
	db #0c,#85,#1c,#18,#1c,#0c,#1c,#18
	db #1c,#30,#ff
.s11
	db #80,#0e,#0c,#1a,#0c
	db #81,#1e,#0c,#80,#0e,#0c,#80,#1a
	db #0c,#81,#1e,#0c,#80,#0e,#0c,#1a
	db #0c,#80,#0e,#0c,#1a,#0c,#81,#1e
	db #0c,#80,#0e,#0c,#80,#1a,#0c,#81
	db #1e,#0c,#80,#0e,#0c,#1a,#0c,#85
	db #10,#c0,#ff
.s12
	db #84,#12,#0a,#87,#1b
	db #0a,#81,#12,#0a,#87,#19,#05,#1b
	db #05,#84,#12,#0a,#87,#1b,#0a,#81
	db #12,#0a,#87,#1b,#05,#19,#05,#84
	db #12,#0a,#87,#1b,#0a,#81,#12,#0a
	db #87,#19,#05,#1b,#05,#84,#12,#0a
	db #12,#0a,#81,#12,#0a,#87,#1b,#05
	db #19,#05,#84,#12,#0a,#87,#1b,#0a
	db #81,#12,#0a,#87,#19,#05,#1b,#05
	db #84,#12,#0a,#87,#1b,#0a,#81,#12
	db #0a,#87,#1b,#05,#19,#05,#84,#12
	db #0a,#87,#1b,#0a,#81,#12,#0a,#87
	db #19,#05,#1b,#05,#84,#12,#0a,#12
	db #0a,#81,#12,#0a,#12,#05,#12,#05
	db #ff
.s13
	db #85,#06,#3c,#09,#0a,#0b,#3c
	db #06,#0a,#09,#0a,#0b,#0a,#85,#06
	db #3c,#09,#0a,#0b,#3c,#06,#0a,#09
	db #0a,#0b,#0a,#ff
.s14
	db #83,#7f,#a0,#1e
	db #50,#81,#25,#05,#25,#0a,#25,#05
	db #25,#0a,#81,#22,#05,#22,#05,#22
	db #05,#22,#0a,#81,#1e,#05,#1e,#05
	db #1e,#05,#1e,#0a,#ff
.s15
	db #80,#06,#0a
	db #06,#0a,#06,#0a,#06,#0a,#ff
.s16
	db #86
	db #1e,#05,#1c,#05,#19,#05,#17,#05
	db #19,#05,#17,#05,#15,#05,#10,#05
	db #86,#12,#05,#15,#05,#17,#05,#15
	db #05,#17,#05,#19,#05,#17,#05,#19
	db #05,#86,#1c,#05,#19,#05,#1c,#05
	db #1e,#05,#1c,#05,#1e,#05,#21,#05
	db #1e,#05,#86,#21,#05,#23,#05,#21
	db #05,#23,#05,#25,#05,#23,#05,#25
	db #05,#28,#05,#86,#1e,#14,#85,#1e
	db #0a,#1e,#0a,#1c,#0a,#1e,#14,#1e
	db #0a,#21,#0a,#1e,#0a,#12,#0a,#1c
	db #1e,#10,#14,#ff
.s17
	db #80,#06,#0a,#06
	db #0a,#06,#0a,#06,#0a,#06,#0a,#06
	db #0a,#06,#0a,#06,#0a,#80,#0b,#0a
	db #0b,#0a,#0b,#0a,#0b,#0a,#0b,#0a
	db #0b,#0a,#0b,#0a,#0b,#0a,#80,#0e
	db #0a,#0e,#0a,#0e,#0a,#0e,#0a,#0e
	db #0a,#0e,#0a,#0e,#0a,#0e,#0a,#80
	db #15,#0a,#15,#0a,#15,#0a,#08,#14
	db #12,#0a,#10,#14,#ff
.s18
	db #85,#12,#0a
	db #15,#0a,#17,#0a,#1e,#32,#85,#17
	db #0a,#17,#0a,#17,#0a,#17,#14,#12
	db #0a,#15,#0a,#17,#1e,#85,#1a,#0a
	db #1a,#0a,#19,#0a,#17,#1e,#85,#1c
	db #1e,#1a,#14,#19,#0a,#17,#0a,#15
	db #0a,#ff
.s19
	db #86,#1c,#05,#1d,#05,#1e
	db #05,#1c,#05,#1d,#05,#1e,#05,#1c
	db #05,#1d,#05,#1e,#3c,#86,#21,#05
	db #23,#05,#21,#05,#1e,#05,#23,#28
	db #85,#25,#0a,#26,#0a,#25,#0a,#23
	db #14,#25,#0a,#23,#0a,#21,#14,#85
	db #23,#0a,#21,#0a,#20,#14,#21,#05
	db #21,#05,#20,#0a,#1c,#0a,#ff
.s20
	db #86
	db #2a,#05,#2a,#05,#28,#05,#25,#05
	db #2a,#05,#2a,#05,#28,#0a,#86,#2a
	db #05,#2a,#05,#28,#05,#25,#05,#2a
	db #05,#2a,#05,#28,#05,#25,#05,#85
	db #2a,#50,#86,#28,#05,#2a,#05,#2a
	db #05,#28,#05,#2a,#05,#2d,#05,#2d
	db #05,#2a,#05,#86,#2d,#05,#2f,#05
	db #2f,#05,#2d,#05,#2f,#05,#31,#05
	db #31,#05,#2f,#05,#86,#31,#05,#34
	db #05,#34,#05,#31,#05,#2a,#05,#28
	db #05,#25,#05,#23,#05,#86,#28,#05
	db #25,#05,#23,#05,#21,#05,#25,#05
	db #23,#05,#21,#05,#1c,#05,#ff
.s21
	db #86
	db #06,#05,#09,#05,#0b,#05,#0d,#05
	db #09,#05,#0b,#05,#0d,#05,#10,#05
	db #86,#0b,#05,#0d,#05,#10,#05,#12
	db #05,#0d,#05,#10,#05,#12,#05,#15
	db #05,#86,#12,#05,#15,#05,#17,#05
	db #19,#05,#15,#05,#17,#05,#19,#05
	db #1c,#05,#86,#17,#05,#19,#05,#1c
	db #05,#1e,#05,#19,#05,#1c,#05,#1e
	db #05,#21,#05,#85,#1e,#50,#21,#0a
	db #15,#1e,#20,#0a,#14,#1e,#ff
.s22
	db #85
	db #06,#50,#09,#50,#0b,#50,#09,#28
	db #0b,#28,#ff
.s23
	db #86,#19,#14,#19,#0a
	db #1e,#28,#ff
.s24
	db #86,#1e,#14,#1e,#0a
	db #22,#28,#ff
.s25
	db #83,#2a,#1e,#86,#25
	db #28,#ff
.s26
	db #82,#94,#31,#90,#7f,#30
	db #ff
.s27
	db #82,#95,#2a,#90,#7f,#30,#ff
.s28
	db #85,#12,#18,#7f,#30,#ff
.s29
	db #86,#12
	db #05,#16,#05,#19,#05,#1e,#05,#22
	db #05,#25,#05,#2a,#05,#ff
.s30
	db #7f,#06
	db #ff
.s31
	db #83,#1e,#05,#06,#2a,#ff
.s32
	db #81
	db #19,#0a,#7f,#1e,#ff
.s33
	db #80,#07,#05
	db #06,#05,#ff
.s34
	db #83,#94,#2a,#05,#06
	db #48,#90,#ff
.lbaf1
	db s00,s01,s02,s03,s04,s05,s06,s07
	db s08,s09,s10,s11,s12,s13,s14,s15
	db s16,s17,s18,s19,s20,s21,s22,s23
	db s24,s25,s26,s27,s28,s29,s30,s31
	db s32,s33,s34
;	db #e6,#f6,#06,#29,#52,#7b,#d5,#04
;	db #4a,#8d,#b4,#e9,#19,#87,#a2,#c3
;	db #cd,#2a,#6b,#98,#d5,#3d,#8d,#99
;	db #a1,#a9,#b0,#b7,#be,#c4,#d4,#d7
;	db #dd,#e3,#e9
.lbb14
	db s00/&100,s01/&100,s02/&100,s03/&100,s04/&100,s05/&100,s06/&100,s07/&100
	db s08/&100,s09/&100,s10/&100,s11/&100,s12/&100,s13/&100,s14/&100,s15/&100
	db s16/&100,s17/&100,s18/&100,s19/&100,s20/&100,s21/&100,s22/&100,s23/&100
	db s24/&100,s25/&100,s26/&100,s27/&100,s28/&100,s29/&100,s30/&100,s31/&100
	db s32/&100,s33/&100,s34/&100
;	db #b5,#b5,#b6,#b6,#b6,#b6,#b6,#b7
;	db #b7,#b7,#b7,#b7,#b8,#b8,#b8,#b8
;	db #b8,#b9,#b9,#b9,#b9,#ba,#ba,#ba
;	db #ba,#ba,#ba,#ba,#ba,#ba,#ba,#ba
;	db #ba,#ba,#ba
.lbb37
	dw lbb7f,lbb86,lbb8d
	dw lbb94,lbba0,lbbb2
	dw lbbc0,lbbc1,lbbc2
	dw lbbc3,lbbc4,lbbc5
	dw lbbc6,lbbc7,lbbc8
	dw lbbc9,lbbcd,lbbd1
	dw lbbd5,lbbd9,lbbdd
	dw lbbe1,lbbe5,lbbe6
	dw lbbea,lbbee,lbbf3
	dw lbbf9,lbbfd,lbc01
	dw lbc05,lbc09,lbc0d
	dw lbc11,lbc15,lbc19
.lbb86 equ $ + 7
.lbb7f
	db #fe,#ff,#00,#03,#06,#09,#ff,#fe
.lbb8d equ $ + 6
	db #ff,#01,#04,#07,#0a,#ff,#fe,#ff
.lbb94 equ $ + 5
	db #02,#05,#08,#0b,#ff,#fe,#ff,#0c
	db #0c,#0c,#0c,#0c,#0c,#0c,#0c,#0c
.lbba0 equ $ + 1
	db #ff,#fe,#ff,#0d,#0d,#10,#12,#13
	db #fe,#f3,#14,#fe,#ff,#15,#fe,#0b
.lbbb2 equ $ + 3
	db #82,#16,#ff,#fe,#ff,#0e,#88,#0f
	db #88,#0f,#11,#11,#11,#11,#82,#16
.lbbc6 equ $ + 7
.lbbc5 equ $ + 6
.lbbc4 equ $ + 5
.lbbc3 equ $ + 4
.lbbc2 equ $ + 3
.lbbc1 equ $ + 2
.lbbc0 equ $ + 1
	db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#ff
.lbbcd equ $ + 6
.lbbc9 equ $ + 2
.lbbc8 equ $ + 1
.lbbc7
	db #ff,#ff,#fe,#ff,#17,#ff,#fe,#ff
.lbbd5 equ $ + 6
.lbbd1 equ $ + 2
	db #18,#ff,#fe,#ff,#19,#ff,#fe,#0b
.lbbdd equ $ + 6
.lbbd9 equ $ + 2
	db #1c,#ff,#fe,#0f,#1c,#ff,#fe,#12
.lbbe6 equ $ + 7
.lbbe5 equ $ + 6
.lbbe1 equ $ + 2
	db #1c,#ff,#fe,#ff,#1a,#ff,#ff,#fe
.lbbee equ $ + 7
.lbbea equ $ + 3
	db #ff,#1b,#ff,#fe,#ff,#1d,#ff,#fe
.lbbf3 equ $ + 4
	db #ff,#1e,#1d,#ff,#fe,#ff,#1e,#1e
.lbbfd equ $ + 6
.lbbf9 equ $ + 2
	db #1d,#ff,#fe,#ff,#1f,#ff,#fe,#ff
.lbc05 equ $ + 6
.lbc01 equ $ + 2
	db #20,#ff,#fe,#fa,#1f,#ff,#fe,#ff
.lbc0d equ $ + 6
.lbc09 equ $ + 2
	db #20,#ff,#fe,#ff,#21,#ff,#fe,#fa
.lbc15 equ $ + 6
.lbc11 equ $ + 2
	db #20,#ff,#fe,#ff,#22,#ff,#fe,#04
.lbc1d equ $ + 6
.lbc19 equ $ + 2
	db #22,#ff,#fe,#00,#1f,#ff,#7f,#fd
	db #00,#ff,#7f,#00,#01,#01,#00,#01
	db #7f,#f6,#00,#ff,#7f,#00,#01,#02
	db #01,#03,#7f,#ff,#7f,#fb,#7f,#00
	db #05,#05,#00,#01,#7f,#fe,#00,#ff
	db #7f,#00,#00,#00,#03,#02,#7f,#f8
	db #00,#ff,#7f,#00,#00,#00,#01,#01
	db #7f,#fe,#5f,#ff,#7f,#00,#03,#03
	db #00,#01,#7f,#fc,#00,#ff,#7f,#00
	db #01,#02,#00,#01,#7f,#ec,#00,#ff
	db #6e,#00,#01,#02,#03,#03,#7f,#fa
	db #50,#ff,#7f,#00,#03,#01,#00,#01
	db #7f,#fa,#50,#ff,#7f,#00,#03,#01
	db #00,#01,#7f,#fa,#50,#ff,#7f,#00
	db #03,#01,#00,#01,#7f,#fa,#50,#ff
	db #7f,#00,#03,#01,#00,#01,#7f,#fa
	db #50,#ff,#7f,#00,#03,#01,#00,#01
	db #7f,#fa,#50,#ff,#7f,#00,#03,#01
	db #00,#01,#7f,#fa,#50,#ff,#7f,#00
	db #03,#01,#00,#01,#7f,#fa,#50,#ff
	db #7f,#00,#03,#01,#00,#01,#7f,#fa
	db #50,#ff,#7f,#00,#03,#01,#00,#01
	db #7f,#fa,#50,#ff,#7f,#00,#03,#01
	db #00,#01,#7f,#fa,#50,#ff,#7f,#00
	db #03,#01,#00,#01,#89,#29,#00,#00
	db #00,#00,#00,#00,#89,#21,#00,#00
	db #00,#00,#00,#00,#91,#1a,#00,#00
	db #00,#00,#00,#00,#91,#22,#00,#00
	db #00,#00,#00,#00,#89,#21,#00,#00
	db #00,#00,#00,#00,#89,#19,#00,#00
	db #00,#00,#00,#00,#89,#29,#00,#00
	db #00,#00,#00,#00,#89,#49,#00,#00
	db #00,#00,#00,#00
.lbd1b
	db #0e,#fe,#01,#ff
	db #7f,#00,#04,#11,#00,#01,#53,#00
	db #28,#7f,#fc,#01,#ff,#7f,#00,#00
	db #1b,#00,#03,#07,#00,#14,#7f,#f5
	db #01,#ff,#7f,#00,#00,#5c,#00,#03
	db #96,#01,#0a,#7f,#fe,#01,#ff,#7f
	db #05,#04,#02,#00,#01,#68,#00
	db #28
.lbd4f
	dw #0777,#070c,#06a7,#0647
	dw #05ed,#0598,#0547,#04fc
	dw #04d4,#0470,#0431,#03f4
	dw #03dc,#0386,#0353,#0324
	dw #02f6,#02cc,#02a4,#027e
	dw #025a,#0238,#0218,#01fa
	dw #01de,#01c3,#01aa,#0192
	dw #017b,#0166,#0152,#013f
	dw #012d,#011c,#010c,#00fd
	dw #00ef,#00e1,#00d5,#00c9
	dw #00be,#00b3,#00a9,#009f
	dw #0096,#008e,#0086,#007f
	dw #0077,#0071,#006a,#0064
	dw #005f,#0059,#0054,#0050
	dw #004b,#0047,#0043,#003f
	dw #003c,#0038,#0035,#0032
	dw #002f,#002d,#002a,#0028
	dw #0026,#0024,#0022,#0020
	dw #0018,#0017
;

.game_name
	db "Hard Drivin'",0
.game_year
	db "1989",0
.game_publisher
	db "Domark",0
.music_author
	db "Ben Daglish",0
.music_comment
	db "",0

	read "music_end_v1_0.asm"
